<extend name="./public/frame.html"/>
<block name="content">
    <table class="layui-table">
        <tr>
            <td style="text-align: center;width: 12%">活动类型</td>
            <td><?php echo $orderTypeName[$data['order_type']];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">活动名称</td>
            <td><?php echo $data['coupon_name'];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">优惠类型</td>
            <td><?php echo $moneyTypeName[$data['money_type']];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">领取途径</td>
            <td><?php echo $isRecommedName[$data['is_recommed']];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">满/(元)</td>
            <td><?php echo $data['over_money']/100;?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">优惠/折扣</td>
            <td>
                <?php if($data['money_type'] == 1):?>
                <?php echo $data['money']/100;?>（元）
                <?php else:?>
                <?php echo $data['money']/10;?>（折）
                <?php endif;?>
            </td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">开始时间</td>
            <td><?php echo date("Y-m-d",$data['start_time']);?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">结束时间</td>
            <td><?php echo date("Y-m-d",$data['end_time']);?></td>
        </tr>
        <?php if($couponInfo['type_day'] == 1):?>
        <tr>
            <td style="text-align: center;width: 12%">固定日期模式</td>
            <td>日期：
                <?php if(!empty($data['valid_start_time'])):?><?php echo date("Y-m-d",$data['valid_start_time']);?><?php endif;?> -
                <?php if(!empty($data['valid_start_time'])):?><?php echo date("Y-m-d",$data['valid_end_time']);?><?php endif;?>
            </td>
        </tr>
        <?php else:?>
        <tr>
            <td style="text-align: center;width: 12%">非固定模式</td>
            <td>
                自用户领取之日起：<?php echo $data['start_day'];?> 天后生效,有效期：<?php echo $data['duration_day'];?> 天
            </td>
        </tr>
        <?php endif;?>
        <tr>
            <td style="text-align: center;width: 12%">城市</td>
            <td><?php echo $data['region_name'];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">数量(优惠券)</td>
            <td><?php echo $count;?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">已使用</td>
            <td><?php echo $count_use;?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">未使用</td>
            <td><?php echo $count_no_use;?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">描述</td>
            <td><?php echo $data['comment'];?></td>
        </tr>
        <tr>
            <td style="text-align: center;width: 12%">添加者</td>
            <td><?php echo $data['admin_name'];?></td>
        </tr>
    </table>
</block>
